package com.three.box.entity

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

@Parcelize
data class ProductConfig(
    val id: Int,
    val name: String,
    val desc: String,
    var productModels: List<ProductModel> = listOf(),
    var checked: Boolean = false
): Parcelable {
    fun checkAll(): Boolean {
        return productModels.all { productModel -> productModel.checked }
    }
}
